package com.ymf.consumer.client.fallback;

import com.ymf.consumer.client.MyClient;
import com.ymf.consumer.pojo.Description;
import com.ymf.consumer.pojo.MyMessage;
import com.ymf.consumer.pojo.Skills;
import com.ymf.consumer.pojo.data;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;
import java.util.List;

@Component
public class MyClientFalback implements MyClient {

    @Override
    public List<MyMessage> findall() {
        MyMessage myMessage = new MyMessage();
        myMessage.setName("查询异常");
        ArrayList<MyMessage> myMessages = new ArrayList<>();
        myMessages.add(myMessage);
        return myMessages;
    }

    @Override
    public String desc(int id) {
        return "查询异常";
    }

    @Override
    public int updataAboutMe(MyMessage myMessage) {
        return 0;
    }

    @Override
    public int updataMy_message(MyMessage myMessage) {
        return 0;
    }

    @Override
    public String findskills() {
        return "查询异常";
    }

    @Override
    public int deleteSkillsById(int id) {
        return 0;
    }

    @Override
    public int insertSkills(Skills skills) {
        return 0;
    }

    @Override
    public int updateSkillsById(Skills skills) {
        return 0;
    }

    @Override
    public int updataSignature(MyMessage myMessage) {
        return 0;
    }

    @Override
    public int deleteEscription(Description description) {
        return 0;
    }

    @Override
    public int insertDescription(Description description) {
        return 0;
    }

    @Override
    public int updateNotice(MyMessage myMessage) {
        return 0;
    }

    @Override
    public Integer uodateAvatar(MyMessage myMessage) {
        return 0;
    }


    @Override
    public String findredis() {
        return "用户异常";
    }
}
